package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 火灾对象 fire_value_data
 * 
 * @author ruoyi
 * @date 2022-10-01
 */
public class FireValueData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer fireId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发生时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date happenTime;

    /** 地点（经纬度） */
    @Excel(name = "地点", readConverterExp = "经=纬度")
    private String coordinate;

    /** 截图保存图片地址 */
    @Excel(name = "截图保存图片地址")
    private String pictureAddress;

    /** 锚框参数（x,y,w,h） */
    @Excel(name = "锚框参数", readConverterExp = "x=,y,w,h")
    private String anchor;

    /** 保存视频片段地址 */
    @Excel(name = "保存视频片段地址")
    private String videoAddress;

    /** 摄像头 */
    @Excel(name = "摄像头")
    private String device;

    /** 摄像头ID（外键） */
    @Excel(name = "摄像头ID", readConverterExp = "外=键")
    private Integer deviceId;

    /** 火灾种类，1抽烟，2扩张之中火源，3指定安全区域内的防火器材丢失（灭火器） */
    @Excel(name = "火灾种类，1抽烟，2扩张之中火源，3指定安全区域内的防火器材丢失", readConverterExp = "灭=火器")
    private String fireType;

    /** 准确度 */
    @Excel(name = "准确度")
    private BigDecimal accuracy;

    /** 等级 4,3,4等级最高，数值最小1 */
    @Excel(name = "等级 4,3,4等级最高，数值最小1")
    private Integer level;

    /** 1 当阳 2 殷墟 3 敦煌 4 通用 5模拟 */
    @Excel(name = "1 当阳 2 殷墟 3 敦煌 4 通用 5模拟")
    private Long unit;

    /** 其它 */
    @Excel(name = "其它")
    private String other;

    private Integer ristType;

    public Integer getRistType() {
        return ristType;
    }

    public void setRistType(Integer ristType) {
        this.ristType = ristType;
    }

    public void setFireId(Integer fireId) 
    {
        this.fireId = fireId;
    }

    public Integer getFireId() 
    {
        return fireId;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setHappenTime(Date happenTime) 
    {
        this.happenTime = happenTime;
    }

    public Date getHappenTime() 
    {
        return happenTime;
    }
    public void setCoordinate(String coordinate) 
    {
        this.coordinate = coordinate;
    }

    public String getCoordinate() 
    {
        return coordinate;
    }
    public void setPictureAddress(String pictureAddress) 
    {
        this.pictureAddress = pictureAddress;
    }

    public String getPictureAddress() 
    {
        return pictureAddress;
    }
    public void setAnchor(String anchor) 
    {
        this.anchor = anchor;
    }

    public String getAnchor() 
    {
        return anchor;
    }
    public void setVideoAddress(String videoAddress) 
    {
        this.videoAddress = videoAddress;
    }

    public String getVideoAddress() 
    {
        return videoAddress;
    }
    public void setDevice(String device) 
    {
        this.device = device;
    }

    public String getDevice() 
    {
        return device;
    }
    public void setDeviceId(Integer deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Integer getDeviceId() 
    {
        return deviceId;
    }
    public void setFireType(String fireType) 
    {
        this.fireType = fireType;
    }

    public String getFireType() 
    {
        return fireType;
    }
    public void setAccuracy(BigDecimal accuracy) 
    {
        this.accuracy = accuracy;
    }

    public BigDecimal getAccuracy() 
    {
        return accuracy;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }
    public void setUnit(Long unit) 
    {
        this.unit = unit;
    }

    public Long getUnit() 
    {
        return unit;
    }
    public void setOther(String other) 
    {
        this.other = other;
    }

    public String getOther() 
    {
        return other;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fireId", getFireId())
            .append("time", getTime())
            .append("happenTime", getHappenTime())
            .append("coordinate", getCoordinate())
            .append("pictureAddress", getPictureAddress())
            .append("anchor", getAnchor())
            .append("videoAddress", getVideoAddress())
            .append("device", getDevice())
            .append("deviceId", getDeviceId())
            .append("fireType", getFireType())
            .append("accuracy", getAccuracy())
            .append("level", getLevel())
            .append("unit", getUnit())
            .append("other", getOther())
            .toString();
    }
}
